package com.ruoyi.blogs.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 评论点赞点踩记录对象 bs_comment_like_record
 * 
 * @author ruoyi
 * @date 2022-11-05
 */
@ApiModel(value = "BsCommentLikeRecord", description = "评论点赞点踩记录实体")
public class BsCommentLikeRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty(value = "id")
    private String id;

    /** 用户id */
    @ApiModelProperty(value = "用户id")
    @Excel(name = "用户id")
    private Long userId;

    /** 笔记id */
    @ApiModelProperty(value = "笔记id")
    @Excel(name = "笔记id")
    private String noteId;

    /** 评论id */
    @ApiModelProperty(value = "评论id")
    @Excel(name = "评论id")
    private Long commentId;

    /** 类型  0是点踩  1是点赞 */
    @ApiModelProperty(value = "类型(0是点踩  1是点赞)")
    @Excel(name = "类型  0是点踩  1是点赞")
    private Long opType;

    /** 评论父类id */
    @ApiModelProperty(value = "评论父类id")
    @Excel(name = "评论父类id")
    private Long parentId;

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getNoteId() {
        return noteId;
    }

    public void setNoteId(String noteId) {
        this.noteId = noteId;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setOpType(Long opType) 
    {
        this.opType = opType;
    }

    public Long getOpType() 
    {
        return opType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("noteId", getNoteId())
            .append("userId", getUserId())
            .append("commentId", getCommentId())
            .append("opType", getOpType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
